<?php

use App\Http\Controllers\LoginController;
use App\Http\Controllers\UserController;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/



Route::post('/login', [LoginController::class, 'login']);
Route::post('/register', [LoginController::class, 'register']);

register_route('/', UserController::class, function ($controller) {
    Route::post('/getUserInfo', [$controller, 'getUserInfo']);
    Route::post('/editMeetingStatus', [$controller, 'editMeetingStatus']);
    Route::post('/editUserInfo', [$controller, 'editUserInfo']);
});
